/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cc.altius.service.impl;

import cc.altius.dao.LocumDao;
import cc.altius.model.Locum;
import cc.altius.service.LocumService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author sagar
 */
@Service
public class LocumServiceImpl implements LocumService {
    @Autowired
    private LocumDao locumDao;

    @Override
    public int addLocum(Locum locum) {
        return this.locumDao.addLocum(locum);
    }

    @Override
    public int updateLocum(Locum locum, int locumId) {
        return this.locumDao.updateLocum(locum, locumId);
    }

    @Override
    public List<Locum> getLocumList() {
        return this.locumDao.getLocumList();
    }

    @Override
    public Locum getLocumById(int locumId) {
        return this.locumDao.getLocumById(locumId);
    }
    
}
